
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>11.3、自动化测试框架 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter11.4.html" />
    
    
    <link rel="prev" href="chapter11.2.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    1、设计思路
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="chapter1.1.html">
            
                <a href="chapter1.1.html">
            
                    
                    1.1、参考文献
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                    2、服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="chapter2.1.html">
            
                <a href="chapter2.1.html">
            
                    
                    2.1、配置静态ip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="chapter2.2.html">
            
                <a href="chapter2.2.html">
            
                    
                    2.2、Centos7扩容
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chapter3.html">
            
                <a href="chapter3.html">
            
                    
                    3、mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chapter3.1.html">
            
                <a href="chapter3.1.html">
            
                    
                    3.1、初始化登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chapter3.2.html">
            
                <a href="chapter3.2.html">
            
                    
                    3.2、mysql5.7&8.0设置用户密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="chapter3.3.html">
            
                <a href="chapter3.3.html">
            
                    
                    3.3、mysql5.7&8.0开启远程登录权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="chapter3.4.html">
            
                <a href="chapter3.4.html">
            
                    
                    3.4、mysql8.0驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="chapter3.5.html">
            
                <a href="chapter3.5.html">
            
                    
                    3.5、mysql更改端口号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="chapter4.html">
            
                <a href="chapter4.html">
            
                    
                    4、mongodb
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="chapter4.1.html">
            
                <a href="chapter4.1.html">
            
                    
                    4.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="chapter4.2.html">
            
                <a href="chapter4.2.html">
            
                    
                    4.2、集群测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="chapter5.html">
            
                <a href="chapter5.html">
            
                    
                    5、redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="chapter5.1.html">
            
                <a href="chapter5.1.html">
            
                    
                    5.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="chapter5.2.html">
            
                <a href="chapter5.2.html">
            
                    
                    5.2、集群测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="chapter5.3.html">
            
                <a href="chapter5.3.html">
            
                    
                    5.3、配置服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="chapter6.html">
            
                <a href="chapter6.html">
            
                    
                    6、Nexus
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="chapter6.1.html">
            
                <a href="chapter6.1.html">
            
                    
                    6.1、windows&linux_maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="chapter6.2.html">
            
                <a href="chapter6.2.html">
            
                    
                    6.2、Nexus
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="chapter7.html">
            
                <a href="chapter7.html">
            
                    
                    7、ZenTao
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="chapter7.1.html">
            
                <a href="chapter7.1.html">
            
                    
                    7.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="chapter7.2.html">
            
                <a href="chapter7.2.html">
            
                    
                    7.2、禅道部分概念释义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="chapter8.html">
            
                <a href="chapter8.html">
            
                    
                    8、jenkins
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="chapter8.1.html">
            
                <a href="chapter8.1.html">
            
                    
                    8.1、git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="chapter8.2.html">
            
                <a href="chapter8.2.html">
            
                    
                    8.2、gradle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="chapter8.3.html">
            
                <a href="chapter8.3.html">
            
                    
                    8.3、sdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="chapter8.4.html">
            
                <a href="chapter8.4.html">
            
                    
                    8.4、jenkins安装部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="chapter9.html">
            
                <a href="chapter9.html">
            
                    
                    9、Sonar
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="chapter9.1.html">
            
                <a href="chapter9.1.html">
            
                    
                    9.1、SonarQube
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="chapter9.2.html">
            
                <a href="chapter9.2.html">
            
                    
                    9.2、配置服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="chapter9.3.html">
            
                <a href="chapter9.3.html">
            
                    
                    9.3、SonarQubeScanner
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="chapter9.4.html">
            
                <a href="chapter9.4.html">
            
                    
                    9.4、集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="chapter10.html">
            
                <a href="chapter10.html">
            
                    
                    10、Android本地商城被测件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="chapter10.1.html">
            
                <a href="chapter10.1.html">
            
                    
                    10.1、Android本地商城需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="chapter10.2.html">
            
                <a href="chapter10.2.html">
            
                    
                    10.2、Android本地商城功能设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="chapter10.3.html">
            
                <a href="chapter10.3.html">
            
                    
                    10.3、Android本地商城业务及数据库设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="chapter10.4.html">
            
                <a href="chapter10.4.html">
            
                    
                    10.4、Android本地商城UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="chapter10.5.html">
            
                <a href="chapter10.5.html">
            
                    
                    10.5、Android本地商城托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="chapter10.6.html">
            
                <a href="chapter10.6.html">
            
                    
                    10.6、Android自动化构建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="chapter11.html">
            
                <a href="chapter11.html">
            
                    
                    11、Appium_自动化测试框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="chapter11.1.html">
            
                <a href="chapter11.1.html">
            
                    
                    11.1、总体设计思路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="chapter11.2.html">
            
                <a href="chapter11.2.html">
            
                    
                    11.2、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.12.3" data-path="chapter11.3.html">
            
                <a href="chapter11.3.html">
            
                    
                    11.3、自动化测试框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="chapter11.4.html">
            
                <a href="chapter11.4.html">
            
                    
                    11.4、自动化测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="chapter11.5.html">
            
                <a href="chapter11.5.html">
            
                    
                    11.5、并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="chapter11.6.html">
            
                <a href="chapter11.6.html">
            
                    
                    11.6、并行测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="chapter11.7.html">
            
                <a href="chapter11.7.html">
            
                    
                    11.7、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="chapter12.html">
            
                <a href="chapter12.html">
            
                    
                    12、Maxim_Monkey
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="chapter12.1.html">
            
                <a href="chapter12.1.html">
            
                    
                    12.1、Maxim_Monkey使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="chapter12.2.html">
            
                <a href="chapter12.2.html">
            
                    
                    12.2、Maxim_Monkey托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="chapter12.3.html">
            
                <a href="chapter12.3.html">
            
                    
                    12.3、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="chapter13.html">
            
                <a href="chapter13.html">
            
                    
                    13、postman&newman
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="chapter13.1.html">
            
                <a href="chapter13.1.html">
            
                    
                    13.1、postman接口测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="chapter13.2.html">
            
                <a href="chapter13.2.html">
            
                    
                    13.2、newman
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="chapter13.3.html">
            
                <a href="chapter13.3.html">
            
                    
                    13.3、接口自动化示例托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="chapter13.4.html">
            
                <a href="chapter13.4.html">
            
                    
                    13.4、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="chapter14.html">
            
                <a href="chapter14.html">
            
                    
                    14、open-falcon
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="chapter14.1.html">
            
                <a href="chapter14.1.html">
            
                    
                    14.1、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="chapter14.2.html">
            
                <a href="chapter14.2.html">
            
                    
                    14.2、单机&分布式安装说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="chapter14.3.html">
            
                <a href="chapter14.3.html">
            
                    
                    14.3、dashboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="chapter14.4.html">
            
                <a href="chapter14.4.html">
            
                    
                    14.4、Agent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="chapter14.5.html">
            
                <a href="chapter14.5.html">
            
                    
                    14.5、Transfer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="chapter14.6.html">
            
                <a href="chapter14.6.html">
            
                    
                    14.6、Graph
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="chapter14.7.html">
            
                <a href="chapter14.7.html">
            
                    
                    14.7、API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="chapter14.8.html">
            
                <a href="chapter14.8.html">
            
                    
                    14.8、HBS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.9" data-path="chapter14.9.html">
            
                <a href="chapter14.9.html">
            
                    
                    14.9、Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.10" data-path="chapter14.10.html">
            
                <a href="chapter14.10.html">
            
                    
                    14.10、Alarm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.11" data-path="chapter14.11.html">
            
                <a href="chapter14.11.html">
            
                    
                    14.11、Nodata
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.12" data-path="chapter14.12.html">
            
                <a href="chapter14.12.html">
            
                    
                    14.12、Aggregator
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="chapter15.html">
            
                <a href="chapter15.html">
            
                    
                    15、gitbook_wiki
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="chapter15.1.html">
            
                <a href="chapter15.1.html">
            
                    
                    15.1、wiki搭建使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="chapter16.html">
            
                <a href="chapter16.html">
            
                    
                    16、前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="chapter16.1.html">
            
                <a href="chapter16.1.html">
            
                    
                    16.1、UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="chapter16.2.html">
            
                <a href="chapter16.2.html">
            
                    
                    16.2、前端托管地址
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="chapter17.html">
            
                <a href="chapter17.html">
            
                    
                    17、附加说明
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="chapter17.1.html">
            
                <a href="chapter17.1.html">
            
                    
                    17.1、服务器配置一览
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >11.3、自动化测试框架</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="113&#x3001;&#x81EA;&#x52A8;&#x5316;&#x6D4B;&#x8BD5;&#x6846;&#x67B6;">11.3&#x3001;&#x81EA;&#x52A8;&#x5316;&#x6D4B;&#x8BD5;&#x6846;&#x67B6;</h3>
<p>&#x8BBE;&#x8BA1;&#x601D;&#x8DEF;</p>
<p><img src="image/11.3.2.PNG" alt=""></p>
<p><img src="image/11.3.3.PNG" alt=""></p>
<p>1&#x3001;&#x6846;&#x67B6;&#x6982;&#x89C8;</p>
<p><img src="image/11.3.0.png" alt=""></p>
<p><img src="image/11.3.1.png" alt=""></p>
<p>&#x5305;&#x7C7B;&#x6587;&#x4EF6;&#x7C7B;&#x89E3;&#x91CA;&#xFF1A;</p>
<p><strong>base&#x5305;&#xFF1A;</strong></p>
<p>BasePerpare.java&#xFF1A;&#x542F;&#x52A8;&#x548C;&#x7ED3;&#x675F;&#x6D4B;&#x8BD5;&#xFF0C;&#x4EE5;&#x53CA;&#x6570;&#x636E;&#x63D0;&#x4F9B;&#x8005;&#xFF0C;&#x63D0;&#x4F9B;&#x6D4B;&#x8BD5;&#x6570;&#x636E;,&#x9884;&#x5904;&#x7406;</p>
<p><strong>pages&#x5305;&#xFF1A;</strong>&#x9875;&#x9762;&#x5143;&#x7D20;&#x5B58;&#x653E;</p>
<p><strong>pagesHelper&#x5305;&#xFF1A;</strong></p>
<p>&#x5BF9;&#x8BE5;&#x9875;&#x9762;&#x7684;&#x64CD;&#x4F5C;&#x65B9;&#x6CD5;&#x5B58;&#x653E;&#xFF0C;&#x5982;&#x70B9;&#x51FB;&#xFF0C;&#x7B49;&#x5F85;&#x52A0;&#x8F7D;&#xFF0C;&#x9A8C;&#x8BC1;&#x6587;&#x672C;&#x5185;&#x5BB9;&#xFF0C;&#x8F93;&#x5165;&#xFF0C;&#x6E05;&#x7A7A;&#x7B49;&#x65B9;&#x6CD5;</p>
<p><strong>plugins&#x5305;&#xFF1A;</strong></p>
<p>excel&#x548C;html&#x63D2;&#x4EF6;</p>
<p><strong>testCase&#x5305;&#xFF1A;</strong></p>
<p>&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x8C03;&#x7528;Helper&#x91CC;&#x9762;&#x7684;&#x5404;&#x79CD;&#x65B9;&#x6CD5;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;</p>
<p><strong>utils&#x5305;&#xFF1A;</strong></p>
<p><strong>AppiumUtil.java:</strong></p>
<p>&#x5C01;&#x88C5;appium&#x7684;api:</p>
<p>1&#x3001;&#x83B7;&#x53D6;driver&#xFF1B;</p>
<p>2&#x3001;&#x9000;&#x51FA;app&#xFF1B;</p>
<p>3&#x3001;&#x9000;&#x51FA;&#x79FB;&#x52A8;&#x6D4F;&#x89C8;&#x5668;&#xFF1B;</p>
<p>4&#x3001;&#x901A;&#x8FC7;By&#x5BF9;&#x8C61;&#x53BB;&#x67E5;&#x627E;&#x67D0;&#x4E2A;&#x5143;&#x7D20;&#xFF1B;</p>
<p>5&#x3001;&#x901A;&#x8FC7;By&#x5BF9;&#x8C61;&#x53BB;&#x67E5;&#x627E;&#x4E00;&#x7EC4;&#x5143;&#x7D20;&#xFF1B;</p>
<p>6&#x3001;&#x6E05;&#x7A7A;&#x5143;&#x7D20;&#x5185;&#x5BB9;&#xFF1B;</p>
<p>7&#x3001;&#x8F93;&#x5165;&#x5185;&#x5BB9;&#xFF1B;</p>
<p>8&#x3001;&#x70B9;&#x51FB;&#xFF1B;</p>
<p>9&#x3001;&#x67E5;&#x627E;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;appium&#x65B0;&#x589E;&#x7684;&#x67E5;&#x627E;&#x5143;&#x7D20;&#x65B9;&#x6CD5;&#xFF1B;</p>
<p>10&#x3001;&#x67E5;&#x627E;&#x4E00;&#x7EC4;&#x5143;&#x7D20;&#xFF0C;appium&#x65B0;&#x589E;&#x7684;&#x67E5;&#x627E;&#x5143;&#x7D20;&#x65B9;&#x6CD5;&#xFF1B;</p>
<p>11&#x3001;&#x83B7;&#x53D6;&#x6587;&#x672C;1{getText(By by)}&#xFF1B;</p>
<p>12&#x3001;&#x83B7;&#x53D6;&#x6587;&#x672C;2{getText(String locateWay,String locateValue)}&#xFF1B;</p>
<p>13&#x3001;&#x63D0;&#x4EA4;&#xFF1B;</p>
<p>14&#x3001;&#x83B7;&#x5F97;webview&#x9875;&#x9762;&#x7684;&#x6807;&#x9898;&#xFF1B;</p>
<p>15&#x3001;&#x83B7;&#x5F97;&#x5143;&#x7D20;&#x5C5E;&#x6027;&#x7684;&#x6587;&#x672C;&#xFF1B;</p>
<p>16&#x3001;&#x5728;&#x7ED9;&#x5B9A;&#x7684;&#x65F6;&#x95F4;&#x5185;&#x627E;&#x5143;&#x7D20;&#xFF0C;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x627E;&#x5230;&#x5219;&#x8D85;&#x65F6;&#xFF0C;&#x629B;&#x51FA;&#x5F02;&#x5E38;&#xFF1B;</p>
<p>17&#x3001;&#x5224;&#x65AD;&#x6587;&#x672C;&#x662F;&#x4E0D;&#x662F;&#x548C;&#x9700;&#x6C42;&#x8981;&#x6C42;&#x7684;&#x6587;&#x672C;&#x4E00;&#x81F4;&#xFF1B;</p>
<p>18&#x3001;&#x6682;&#x505C;&#x5F53;&#x524D;&#x7528;&#x529B;&#x5730;&#x6267;&#x884C;&#xFF0C;&#x6682;&#x505C;&#x7684;&#x662F;&#x4EF6;&#x4E3A;&#xFF1A;sleepTime&#xFF1B;</p>
<p>19&#x3001;&#x6839;&#x636E;&#x5143;&#x7D20;&#x6765;&#x83B7;&#x53D6;&#x6B21;&#x5143;&#x7D20;&#x7684;&#x5B9A;&#x4F4D;&#x503C;&#xFF1B;</p>
<p>20&#x3001;&#x5224;&#x65AD;&#x5B9E;&#x9645;&#x6587;&#x672C;&#x65F6;&#x5019;&#x5305;&#x542B;&#x671F;&#x671B;&#x6587;&#x672C;&#xFF1B;</p>
<p>21&#x3001;&#x8DF3;&#x8F6C;&#x5230;webview&#x9875;&#x9762;&#xFF08;int index&#xFF09;&#xFF1B;</p>
<p>22&#x3001;&#x8DF3;&#x8F6C;&#x5230;webview&#x9875;&#x9762;&#xFF08;String contextName&#xFF09;;</p>
<p>23&#x3001;&#x6267;&#x884C;javascript&#x65B9;&#x6CD5;&#xFF1B;</p>
<p>24&#x3001;&#x6267;&#x884C;JavaScript&#x65B9;&#x6CD5;&#x548C;&#x5BF9;&#x8C61;&#xFF1B;</p>
<p>25&#x3001;&#x68C0;&#x67E5;&#x5143;&#x7D20;&#x662F;&#x4E0D;&#x662F;&#x5B58;&#x5728;&#xFF1B;</p>
<p>26&#x3001;&#x957F;&#x6309;&#x64CD;&#x4F5C;&#xFF1B;</p>
<p>27&#x3001;&#x6ED1;&#x52A8;&#xFF1B;</p>
<p>28&#x3001;&#x6EDA;&#x52A8;&#xFF0C;&#x6839;&#x636E;&#x6587;&#x672C;&#x6A21;&#x7CCA;&#x5339;&#x914D;&#xFF1B;</p>
<p>29&#x3001;&#x6EDA;&#x52A8;&#xFF0C;&#x6839;&#x636E;&#x6587;&#x672C;&#x7CBE;&#x51C6;&#x5339;&#x914D;&#xFF1B;</p>
<p>30&#x3001;&#x62D6;&#x62FD;&#x64CD;&#x4F5C;&#xFF1B;</p>
<p>31&#x3001; &#x653E;&#x5927;&#x548C;&#x7F29;&#x5C0F;&#xFF1B;</p>
<p>32&#x3001;app&#x7F6E;&#x4E8E;&#x540E;&#x53F0;&#x8FD0;&#x884C;&#xFF1B;</p>
<p>33&#x3001;&#x6536;&#x8D77;&#x952E;&#x76D8;&#xFF1B;</p>
<p>34&#x3001;&#x5B89;&#x88C5;app&#xFF1B;</p>
<p>35&#x3001;app&#x662F;&#x5426;&#x5B89;&#x88C5;&#xFF1B;</p>
<p>36&#x3001;&#x9875;&#x9762;&#x8FC7;&#x957F;&#x65F6;&#x5019;&#x6ED1;&#x52A8;&#x9875;&#x9762;window.scrollTo(&#x5DE6;&#x8FB9;&#x8DDD;&#xFF0C;&#x4E0A;&#x8FB9;&#x8DDD;)&#xFF1B;</p>
<p>37&#x3001;&#x540E;&#x9000;</p>
<p>38&#x3001;&#x6253;&#x5F00;&#x5E94;&#x7528;</p>
<p><strong>LogConfiguration.java:</strong></p>
<p>&#x914D;&#x7F6E;&#x65E5;&#x5FD7;</p>
<p><strong>PropertiesDataProvide.java:</strong></p>
<p>&#x4ECE;.properties&#x6587;&#x4EF6;&#x4E2D;&#x8BFB;&#x53D6;&#x76F8;&#x5173;&#x6D4B;&#x8BD5;&#x6570;&#x636E;<br></p>
<p><strong>SelectDriver.java:</strong></p>
<p>&#x6839;&#x636E;&#x6D4B;&#x8BD5;&#x5E73;&#x53F0;&#x7684;&#x4E0D;&#x540C;&#x751F;&#x6210;&#x4E0D;&#x540C;&#x7684;driver &#x6BD4;&#x5982;AndroidDriver &#x6216;&#x8005;&#x662F;IOSDriver</p>
<p><strong>result&#x6587;&#x4EF6;&#x5939;&#xFF1A;</strong></p>
<p>&#x5B58;&#x653E;&#x7ED3;&#x679C;&#xFF0C;&#x5305;&#x62EC;excel&#x548C;html&#x7ED3;&#x679C;</p>
<p><strong>xml&#x6587;&#x4EF6;&#xFF1A;</strong></p>
<p>default.xml&#x3010;&#x4E66;&#x4E0A;&#x81EA;&#x5DF1;&#x5EFA;&#x7ACB;&#x7684;&#x4E00;&#x4E2A;testng&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x8981;&#x6709;&#x3011;&#x548C;testng.xml&#x3010;&#x8FD9;&#x4E2A;&#x662F;&#x6211;&#x81EA;&#x5DF1;&#x751F;&#x6210;&#x7684;&#x4E00;&#x4E2A;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#xFF0C;&#x4E0D;&#x7528;&#x7BA1;&#xFF0C;&#x6CA1;&#x6709;&#x4E5F;&#x53EF;&#x4EE5;&#x3011;</p>
<p>runAll.xml:&#x6D4B;&#x8BD5;&#x591A;&#x6761;&#x7528;&#x4F8B;&#x987A;&#x5E8F;&#x6267;&#x884C;&#x6D4B;&#x8BD5;</p>
<p>runSingle.xml:&#x6D4B;&#x8BD5;&#x5355;&#x6761;&#x7528;&#x4F8B;&#x6267;&#x884C;&#x6D4B;&#x8BD5;</p>
<p>runSmoke.xml:&#x5192;&#x70DF;&#x6D4B;&#x8BD5;</p>
<p>pom.xml:maven&#x4ED3;&#x5E93;&#x7BA1;&#x7406;&#x4F9D;&#x8D56;&#x914D;&#x7F6E;&#x6587;&#x4EF6;,&#x4EE5;&#x53CA;&#x8981;&#x8FD0;&#x884C;&#x7684;testng.xml&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x6587;&#x4EF6;</p>
<p>&#x3010;&#x8BE6;&#x7EC6;&#x89E3;&#x91CA;</p>
<p><strong>Base</strong></p>
<p>BasePrepare.java,&#x8FD9;&#x4E2A;&#x7C7B;&#x7684;&#x4E3B;&#x8981;&#x4F5C;&#x7528;&#x662F;&#x542F;&#x52A8;&#x548C;&#x5173;&#x95ED;APP&#x7684;&#x4F5C;&#x7528;&#xFF0C;&#x542F;&#x52A8;APP&#x4F7F;&#x7528;&#x4E86;TetsNG&#x7684;@BeforeClass &#xFF0C;&#x5728;@BeforeClass&#x4E0B;&#x4F1A;&#x521D;&#x59CB;&#x5316;APP&#x5E76;&#x8BBE;&#x7F6E;&#x4E0E;APPIUM&#x901A;&#x4FE1;&#x7684;&#x76F8;&#x5173;&#x6570;&#x636E;&#x3002;&#x5173;&#x95ED;APP&#x4F7F;&#x7528;&#x4E86;TestNG&#x7684;@AfterClass&#xFF0C;&#x5728;&#x8FD9;&#x4E2A;&#x6CE8;&#x91CA;&#x4E0B;&#x5199;&#x4E86;APP&#x9000;&#x51FA;&#x7684;&#x64CD;&#x4F5C;&#xFF1B;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x7C7B;&#x4E2D;&#x5219;&#x662F;&#x4EE5;@Test&#x6CE8;&#x91CA;&#x4E3A;&#x4E3B;&#x4F53;&#x7684;&#xFF0C;&#x5728;@Test&#x6CE8;&#x91CA;&#x4E0B;&#xFF0C;&#x4E66;&#x5199;&#x4E86;&#x5B8C;&#x6574;&#x7684;&#x6D4B;&#x8BD5;&#x6B65;&#x9AA4;&#x3002;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x7EE7;&#x627F;&#x8FD9;&#x4E2A;BasePrepare.java</p>
<p><strong>pages</strong></p>
<p>&#x9875;&#x9762;&#x5143;&#x7D20;&#x7C7B;&#xFF0C;&#x6BCF;&#x4E00;&#x4E2A;java&#x7C7B;&#xFF0C;&#x90FD;&#x662F;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#xFF0C;&#x5B58;&#x653E;&#x7684;&#x90FD;&#x662F;&#x5BF9;&#x5E94;&#x9875;&#x9762;&#x7684;&#x6240;&#x6709;&#x5143;&#x7D20;</p>
<p><strong>pageshelper</strong></p>
<p>&#x5B58;&#x653E;&#x7684;&#x662F;&#x5BF9;&#x5E94;&#x9875;&#x9762;&#x7684;&#x5E2E;&#x52A9;&#x7C7B;&#xFF0C;&#x8FD9;&#x662F;&#x4EC0;&#x4E48;&#x610F;&#x601D;&#xFF1F;&#x7B80;&#x5355;&#x7684;&#x8BF4;&#xFF1A;&#x5728;&#x8FD9;&#x4E2A;&#x9875;&#x9762;&#x4E0A;&#x505A;&#x4E86;&#x4EC0;&#x4E48;&#x64CD;&#x4F5C;&#x90FD;&#x5199;&#x5728;&#x8FD9;&#x4E2A;pageshelper&#x4E2D;&#xFF0C;&#x5982;&#x767B;&#x5F55;&#x9875;&#x9762;&#x7684;&#x65B9;&#x6CD5;</p>
<p><strong>plugins</strong></p>
<p>&#x4E3B;&#x8981;&#x5B58;&#x653E;&#x7684;&#x662F;html&#x62A5;&#x544A;&#x63D2;&#x4EF6;&#x548C;excel&#x62A5;&#x544A;&#x63D2;&#x4EF6;</p>
<p><strong>Testcases</strong></p>
<p>&#x5B58;&#x653E;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x6709;&#x5F88;&#x591A;&#x5B50;&#x5305;&#xFF0C;&#x5B50;&#x5305;&#x7684;&#x4E2A;&#x6570;&#x6839;&#x636E;&#x4F60;&#x6D4B;&#x8BD5;&#x7684;&#x7CFB;&#x7EDF;&#x7684;&#x6A21;&#x5757;&#x6765;&#x5212;&#x5206;</p>
<p><strong>Utils</strong></p>
<p>&#x5C01;&#x88C5;&#x4E86;&#x5404;&#x79CD;&#x5DE5;&#x5177;&#x7C7B;&#xFF0C;&#x5305;&#x62EC;&#x8BFB;&#x53D6;excel&#xFF0C;appium api&#x5C01;&#x88C5;&#x7C7B;&#xFF0C;&#x8BFB;&#x53D6;&#x6570;&#x636E;&#x5E93;&#x7C7B;&#xFF0C;&#x8BFB;&#x53D6;&#x5C5E;&#x6027;&#x6587;&#x4EF6;&#x7C7B;&#x548C;&#x751F;&#x6210;driver&#x7684;&#x7C7B;&#x7B49;&#x3002;</p>
<p><strong>&#x5176;&#x4F59;&#x6587;&#x4EF6;&#x8BF4;&#x660E;&#xFF0C;&#x4E0D;&#x4E00;&#x5B9A;&#x8981;&#x81EA;&#x5DF1;&#x53BB;&#x5EFA;&#x7ACB;</strong></p>
<p><strong>bin&#x76EE;&#x5F55;&#xFF1A;</strong></p>
<p>&#x9879;&#x76EE;&#x7F16;&#x8BD1;&#x751F;&#x6210;class&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x76EE;&#x5F55;&#xFF0C;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0D;&#x7528;&#x53BB;&#x7BA1;&#xFF0C;Eclipse&#x4F1A;&#x81EA;&#x52A8;&#x63A7;&#x5236;&#x3002;</p>
<p><strong>config&#x76EE;&#x5F55;&#xFF1A;</strong></p>
<p>&#x5B58;&#x50A8;&#x6846;&#x67B6;&#x7C7B;&#x6240;&#x9700;&#x7684;&#x6240;&#x6709;&#x5C5E;&#x6027;&#x6587;&#x4EF6;&#xFF0C;&#x6BD4;&#x5982;arrow&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4EE5;&#x53CA;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x4E00;&#x4E9B;&#x5C5E;&#x6027;&#x6587;&#x4EF6;&#x3002;</p>
<p><strong>result&#x76EE;&#x5F55;&#xFF1A;</strong></p>
<p>&#x5B58;&#x50A8;&#x6D4B;&#x8BD5;&#x6846;&#x67B6;&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x751F;&#x6210;&#x7684;&#x62A5;&#x544A;&#xFF08;&#x5305;&#x542B;log&#xFF0C;&#x622A;&#x56FE;&#x7B49;&#xFF09;</p>
<p><strong>src&#x548C;target&#x76EE;&#x5F55;&#xFF1A;</strong></p>
<p>&#x53EF;&#x4EE5;&#x4E0D;&#x7528;&#x7BA1;&#xFF0C;&#x7531;maven&#x63A7;&#x5236;&#x5373;&#x53EF;&#xFF0C;&#x6574;&#x4E2A;&#x6846;&#x67B6;&#xFF0C;&#x6CA1;&#x6709;&#x7528;&#x5230;&#x6B64;&#x76EE;&#x5F55;&#xFF0C;&#x5927;&#x5BB6;&#x53EF;&#x4EE5;&#x5FFD;&#x7565;&#x3002;</p>
<p>&#x63A5;&#x4E0B;&#x6765;&#x8FD8;&#x5269;&#x51E0;&#x4E2A;xml&#x6587;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x6765;&#x4E00;&#x4E00;&#x4ECB;&#x7ECD;&#x4E00;&#x4E0B;&#xFF1A;</p>
<p><strong>pom.xml&#xFF1A;</strong></p>
<p>maven&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x9879;&#x76EE;&#x6838;&#x5FC3;&#x914D;&#x7F6E;&#xFF0C;&#x7528;&#x4E8E;&#x6784;&#x5EFA;&#x9879;&#x76EE;&#x3001;&#x81EA;&#x52A8;&#x4E0B;&#x8F7D;&#x9879;&#x76EE;&#x4F9D;&#x8D56;&#x4EE5;&#x53CA;&#x540E;&#x7EED;&#x7684;&#x548C;testng&#x3001;jenkins&#x914D;&#x5408;&#x6301;&#x7EED;&#x96C6;&#x6210;&#x7B49;</p>
<p><strong>runAll.xml&#xFF1A;</strong></p>
<p>&#x8FD9;&#x662F;testng&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x7528;&#x4E8E;&#x5B58;&#x653E;&#x90E8;&#x5206;&#x6D4B;&#x8BD5;&#x6570;&#x636E;&#x4EE5;&#x53CA;&#x6D4B;&#x8BD5;&#x7684;&#x5E73;&#x53F0;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x914D;&#x7F6E;&#x3001;&#x52A0;&#x5165;&#x7B2C;&#x4E09;&#x65B9;&#x63D2;&#x4EF6;&#x76D1;&#x542C;&#xFF08;arrow&#x63D2;&#x4EF6;&#xFF09;&#x3001;&#x8BBE;&#x7F6E;&#x7528;&#x4F8B;&#x6267;&#x884C;&#x7B56;&#x7565;&#xFF08;&#x591A;&#x7EBF;&#x7A0B;&#x8FD8;&#x662F;&#x5355;&#x7EBF;&#x7A0B;&#xFF0C;&#x987A;&#x5E8F;&#x6267;&#x884C;&#x8FD8;&#x662F;&#x65E0;&#x5E8F;&#x6267;&#x884C;&#x4EE5;&#x53CA;&#x662F;&#x5426;&#x4F9D;&#x8D56;&#x6267;&#x884C;&#x7B49;&#xFF09;&#x4EE5;&#x53CA;&#x8BBE;&#x7F6E;&#x8981;&#x6267;&#x884C;&#x7684;&#x7528;&#x4F8B;&#x3002;&#x4E4B;&#x6240;&#x4EE5;&#x6539;&#x6210;runAll&#x987E;&#x540D;&#x601D;&#x4E49;&#x5C31;&#x662F;&#x8BF4;&#x6267;&#x884C;&#x6574;&#x4E2A;web&#x9879;&#x76EE;&#x7684;&#x6240;&#x6709;&#x6A21;&#x5757;&#x7684;&#x7528;&#x4F8B;&#x7684;&#x6D4B;&#x8BD5;</p>
<p><strong>runSingle.xml</strong></p>
<p>&#x548C;runAll.xml&#x4E00;&#x6837;&#xFF0C;&#x4E0D;&#x591A;&#x89E3;&#x91CA;&#xFF0C;&#x4E0D;&#x4E00;&#x6837;&#x7684;&#x5730;&#x65B9;&#x5C31;&#x662F;&#x7528;&#x5B83;&#x6765;&#x505A;&#x5355;&#x4E2A;&#x7528;&#x4F8B;&#x7684;&#x8C03;&#x8BD5;&#x6539;&#x9519;&#xFF0C;&#x53EA;&#x6D89;&#x53CA;&#x5230;&#x5355;&#x4E2A;&#x7684;&#x7C7B;&#xFF08;&#x7528;&#x4F8B;&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x8C03;&#x8BD5;&#x6539;&#x9519;&#x4E13;&#x7528;&#x3002;&#x6BD4;&#x5982;&#x6211;&#x7528;runAll.xml&#x8DD1;&#x5B8C;&#x4E86;&#x6240;&#x6709;&#x7684;&#x7528;&#x4F8B;&#xFF0C;&#x4F46;&#x662F;&#x53D1;&#x73B0;&#x4E2A;&#x522B;&#x7528;&#x4F8B;&#x5931;&#x8D25;&#xFF0C;&#x6B64;&#x65F6;&#x5148;&#x53BB;&#x5206;&#x6790;log&#xFF0C;&#x5982;&#x679C;&#x662F;&#x4EE3;&#x7801;&#x95EE;&#x9898;&#x5C31;&#x53BB;&#x8C03;&#x8BD5;&#x4EE3;&#x7801;&#xFF0C;&#x8C03;&#x8BD5;&#x5B8C;&#x6BD5;&#x4E4B;&#x540E;&#x5C31;&#x53BB;&#x7528;runSingle.xml&#x53BB;&#x8DD1;&#x4E00;&#x8FB9;&#x6B64;&#x7528;&#x4F8B;&#x3002;</p>
<p><strong>default.xml:</strong> </p>
<p>&#x53EA;&#x5B58;&#x50A8;&#x4E86;&#x6D4B;&#x8BD5;&#x53C2;&#x6570;&#xFF08;parameter&#xFF09;&#x4EE5;&#x53CA;&#x76D1;&#x542C;&#x5668;&#xFF08;arrow&#xFF09;&#xFF0C;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x653E;&#x5728;&#x91CC;&#x9762;&#xFF0C;&#x8FD9;&#x4E2A;xml&#x6587;&#x4EF6;&#x662F;&#x4E3A;&#x4E86;&#x672C;&#x6846;&#x67B6;&#x7684;&#x4E00;&#x4E2A;&#x9ED8;&#x8BA4;testng&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x4E3B;&#x8981;&#x662F;&#x4E3A;&#x4E86;&#xFF0C;&#x76F4;&#x63A5;&#x5728;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x4E2D;&#x53F3;&#x952E;&#x8FD0;&#x884C;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x914D;&#x7F6E;&#x4E00;&#x4E2A;&#x9ED8;&#x8BA4;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x76F4;&#x63A5;&#x5728;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x7C7B;&#x4E2D;&#x76F4;&#x63A5;&#x8FD0;&#x884C;&#x4F1A;&#x8DF3;&#x8FC7;&#x7528;&#x4F8B;&#x3002;&#x56E0;&#x4E3A;xml&#x6587;&#x4EF6;&#x4E2D;&#x5B58;&#x50A8;&#x4E86;&#x4E00;&#x4E9B;&#x5FC5;&#x987B;&#x7684;&#x53C2;&#x6570;&#xFF0C;&#x6BD4;&#x5982;&#x6D4B;&#x8BD5;&#x6D4F;&#x89C8;&#x5668;&#x662F;&#x4EC0;&#x4E48;&#xFF0C;&#x6D4B;&#x8BD5;&#x5E73;&#x53F0;&#x662F;&#x4EC0;&#x4E48;&#x7B49;&#x7B49;&#x3002;&#x6846;&#x67B6;&#x642D;&#x5EFA;&#x8FC7;&#x7A0B;&#x4E2D;&#x4F1A;&#x8BB2;&#x5230;&#x5982;&#x4F55;&#x8BBE;&#x7F6E;default.xml&#x6587;&#x4EF6;&#x3002;</p>
<p><strong>runSmoke.xml&#xFF1A;</strong></p>
<p>&#x8FD9;&#x4E2A;&#x4E3B;&#x8981;&#x6267;&#x884C;&#x5192;&#x70DF;&#x6D4B;&#x8BD5;&#x7528;&#x7684;&#xFF0C;&#x5192;&#x70DF;&#x6D4B;&#x8BD5;&#x6211;&#x4EEC;&#x4F1A;&#x5148;&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x548C;&#x6838;&#x5FC3;&#x529F;&#x80FD;&#x4F5C;&#x4E3A;&#x6D4B;&#x8BD5;&#x91CD;&#x70B9;&#xFF0C;&#x8FC5;&#x901F;&#x8DD1;&#x4E00;&#x904D;&#x8FD9;&#x4E9B;&#x529F;&#x80FD;&#x70B9;&#xFF0C;&#x770B;&#x770B;&#x8FD9;&#x4E2A;&#x8F6F;&#x4EF6;&#x7248;&#x672C;&#x80FD;&#x4E0D;&#x80FD;released</p>
<p>&#x3011;</p>
<p>2&#x3001;&#x6846;&#x67B6;&#x5FEB;&#x901F;&#x4E0A;&#x624B;</p>
<p>&#x672C;&#x5730;&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x9996;&#x5148;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x597D;&#x73AF;&#x5883;&#x3002;</p>
<p>&#x7F16;&#x5199;&#x793A;&#x4F8B;&#xFF1A;&#x4EE5;&#x767B;&#x9646;&#x754C;&#x9762;&#x4E3A;&#x4F8B;</p>
<p>pages&#x5305;&#x4E0B;&#x5EFA;&#x7ACB;LoginPage.java&#xFF0C;&#x5B9A;&#x4E49;&#x754C;&#x9762;&#x5143;&#x7D20;&#xFF0C;&#x683C;&#x5F0F;&#x53C2;&#x89C1;&#x6846;&#x67B6;&#x6E90;&#x7801;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x3002;</p>
<hr>
<p>pagesHelper&#x5305;&#x4E0B;&#x5EFA;&#x7ACB;LoginPageHelper.java,&#x5C01;&#x88C5;&#x5BF9;&#x767B;&#x9646;&#x754C;&#x9762;&#x5143;&#x7D20;&#x64CD;&#x4F5C;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x5176;&#x64CD;&#x4F5C;&#x51FD;&#x6570;&#x8C03;&#x7528;&#x7684;&#x662F;Utils&#x5305;&#x4E0B;&#x5C01;&#x88C5;&#x7684;appium&#x51FD;&#x6570;&#xFF0C;&#x683C;&#x5F0F;&#x53C2;&#x89C1;&#x6846;&#x67B6;&#x6E90;&#x7801;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x3002;</p>
<hr>
<p>testCase&#x5305;&#x4E0B;&#x5EFA;Login&#x5305;&#xFF0C;Login&#x5305;&#x4E0B;&#x5EFA;&#x7ACB;LoginPage_001_UICheckForLogin_Test.java&#xFF0C;&#x662F;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x8C03;&#x7528;pagesHelper&#x5305;&#x4E0B;&#x7684;LoginPageHelper.java&#x4E2D;&#x5C01;&#x88C5;&#x7684;&#x64CD;&#x4F5C;&#x65B9;&#x6CD5;&#xFF0C;&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x903B;&#x8F91;&#xFF0C;&#x683C;&#x5F0F;&#x53C2;&#x89C1;&#x6846;&#x67B6;&#x6E90;&#x7801;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x547D;&#x540D;&#x89C4;&#x8303;&#xFF1A;</p>
<p>1&#x3001;&#x64CD;&#x4F5C;&#x9875;&#x9762;&#xFF0C;LoginPage&#xFF0C;&#x5FC5;&#x987B;&#x5E26;&#x6709;Page&#x5B57;&#x6BB5;</p>
<p>2&#x3001;&#x7528;&#x4F8B;&#x7F16;&#x53F7;&#xFF0C;001&#xFF0C;&#x8F93;&#x51FA;&#x6D4B;&#x8BD5;&#x62A5;&#x544A;&#x65F6;&#x8FDB;&#x884C;&#x8BFB;&#x53D6;&#xFF0C;&#x5FC5;&#x987B;&#x8BBE;&#x7F6E;</p>
<p>3&#x3001;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x63CF;&#x8FF0;&#xFF0C;UICheckForLogin</p>
<p>4&#x3001;&#x6587;&#x4EF6;&#x4F5C;&#x7528;&#xFF0C;Test</p>
<hr>
<p>&#x5728;testng.xml&#x4E2D;&#x914D;&#x7F6E;appium&#x548C;&#x624B;&#x673A;&#x76F8;&#x5173;&#x53C2;&#x6570;&#xFF0C;&#x914D;&#x7F6E;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x7684;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#xFF0C;&#x683C;&#x5F0F;&#x53C2;&#x89C1;&#x6E90;&#x7801;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x3002;</p>
<hr>
<p>&#x5728;pom.xml&#x4E2D;&#x914D;&#x7F6E;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x7684;testng.xml&#x6587;&#x4EF6;&#xFF0C;&#x683C;&#x5F0F;&#x53C2;&#x89C1;&#x6846;&#x67B6;&#x6E90;&#x7801;&#x76F8;&#x5E94;&#x6587;&#x4EF6;&#x3002;</p>
<hr>
<p>3&#x3001;&#x597D;&#x5904;</p>
<p>&#x5728;pagesHelper&#x5305;&#x4E0B;&#x7684;&#x754C;&#x9762;&#x64CD;&#x4F5C;&#x65B9;&#x6CD5;&#x5C01;&#x88C5;&#x4F7F;&#x5F97;&#x7F16;&#x5199;&#x6D4B;&#x8BD5;&#x7528;&#x4F8B;&#x65F6;&#xFF0C;&#x6D4B;&#x8BD5;&#x903B;&#x8F91;&#x5BB9;&#x6613;&#x7F16;&#x5199;&#xFF0C;&#x5728;&#x957F;&#x671F;&#x9879;&#x76EE;&#x4E2D;&#xFF0C;&#x5C01;&#x88C5;&#x7684;&#x754C;&#x9762;&#x64CD;&#x4F5C;&#x65B9;&#x6CD5;&#x590D;&#x7528;&#x6027;&#x6781;&#x9AD8;&#xFF0C;&#x4E0D;&#x540C;&#x7684;&#x7EC4;&#x5408;&#x5373;&#x53EF;&#x5F62;&#x6210;&#x65B0;&#x7684;&#x6D4B;&#x8BD5;&#x903B;&#x8F91;&#x3002;</p>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chapter11.2.html" class="navigation navigation-prev " aria-label="Previous page: 11.2、环境">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chapter11.4.html" class="navigation navigation-next " aria-label="Next page: 11.4、自动化测试框架托管地址">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"11.3、自动化测试框架","level":"1.12.3","depth":2,"next":{"title":"11.4、自动化测试框架托管地址","level":"1.12.4","depth":2,"path":"chapter11.4.md","ref":"chapter11.4.md","articles":[]},"previous":{"title":"11.2、环境","level":"1.12.2","depth":2,"path":"chapter11.2.md","ref":"chapter11.2.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["back-to-top-button","chapter-fold","expandable-chapters-small","insert-logo","splitter","popup","github","github-buttons","livereload"],"pluginsConfig":{"chapter-fold":{},"github":{"url":"https://github.com/xiaolanyun","size":"50px"},"livereload":{},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"github-buttons":{"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 60px; min-height: 30px","url":"http://server.zzidc.com/uploads/allimg/171120/1-1G120162T3202.png"}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter11.3.md","mtime":"2019-04-30T03:45:19.007Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-07T07:59:20.478Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

